from manim import *
# import manimpangoma

class GradientRectangle(MovingCameraScene):
    def construct(self):
        self.camera.background_color = WHITE  # 设置相机的背景颜色为白色
        self.play(
            self.camera.frame.animate.shift(UP*2.2222).set(width = 22.2222),
        )
        
        image_cir = ImageMobject(r"D:\AAAstuffsAAA\AAAqwqAAA\mc\taro-cake\manim-logo\img_cir.png").scale(0.8888).set_opacity(0)
        image_moon = ImageMobject(r"D:\AAAstuffsAAA\AAAqwqAAA\mc\taro-cake\manim-logo\img_moon.png").scale(0.8000).set_opacity(0)
        image_text_taro = ImageMobject(r"D:\AAAstuffsAAA\AAAqwqAAA\mc\taro-cake\manim-logo\image_taro_nobg.png").scale(0.8000).set_opacity(0)
        image_text_cake = ImageMobject(r"D:\AAAstuffsAAA\AAAqwqAAA\mc\taro-cake\manim-logo\image_cake_nobg.png").scale(0.8000).set_opacity(0)
        image_text_yuni = ImageMobject(r"D:\AAAstuffsAAA\AAAqwqAAA\mc\taro-cake\manim-logo\image_yuni_nobg.png").scale(0.8000).set_opacity(0)
        
        
        self.play(
            AnimationGroup(
                image_cir.animate.set_opacity(1).shift(UP*2.2222),
                image_moon.animate.set_opacity(1).shift(UP*2.2222),
                image_text_taro.animate.set_opacity(1).shift(UP*2.2222),
                image_text_cake.animate.set_opacity(1).shift(UP*2.2222),
                image_text_yuni.animate.set_opacity(1).shift(UP*2.2222),
                
                lag_ratio = 0.5
            )
        )

        
        
        self.wait(2.2222)
        